package com.yiyi.credit.manage.sso.service.inner;



import com.yiyi.credit.manage.sso.common.exception.ServiceException;
import com.yiyi.credit.manage.sso.common.page.Pagination;
import com.yiyi.credit.manage.sso.model.entity.SysUserRole;

import java.util.List;


public interface SysUserRoleService {


    Pagination getSysUserRolePageBySysId(Long sysInfoId, String userName, Pagination pagination) throws ServiceException;


    int addSysUserRole(SysUserRole sysUserRole) throws ServiceException;


    int updateSysUserRole(SysUserRole sysUserRole) throws ServiceException;


    void batchAssignSysUserRole(String userIds, Long sysInfoId, Long roleId) throws ServiceException;


    List<SysUserRole> getSysUserRole(Long userId, Long sysInfoId) throws ServiceException;


    List<SysUserRole> getSysUserRoleByRoleId(Long sysRoleId) throws ServiceException;


    int deleteSysUserRoleById(Long id) throws ServiceException;


    SysUserRole getSysUserRoleById(Long id) throws ServiceException;
}
